package com.wpre.booksystem.model;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-11-15
 * Time: 15:02
 */
@Data
public class PageRequest {
    private Integer currentPage = 1;//当前页面,默认为1
    private Integer pageSize = 10;//每页的条数,默认为10
    private Integer offset;

    public Integer getOffset() {
        return (currentPage - 1) * pageSize;
    }
}
